@extends('layouts.app')

@section('title', '身份证认证')

@section('css-import')
<link rel="stylesheet" href="{{config('app.inlet_src')}}assets/css/baguetteBox.min.css">
<style type="text/css">
	.identitycardimg_sty{
		width:1000px;
		display:block;
	}
	.modal-content{
		width:1100px;
	}
	.button-center-sx{
		margin-top: 100px;
		margin-left: 100px;
	}
</style>
@endsection

@section('content-fluid')
<div class="tz-gallery">
	<h3 class="page-title">营业执照认证</h3>
	<div class="row text-center">
	    <div class="col-sm-6 col-md-offset-3">
	        <img src="{{$path}}/{{$licen->business_img}}" class="img-responsive identitycardimg" alt="Responsive image">
	    </div>
	    <input type="hidden" name="userid" value="{{$licen->users_id}}">
	    <input type="hidden" name="licenceid" value="{{$licen->licence_id}}">
	    <div class="col-sm-6 col-md-offset-2">
	        <input type="button"  class="btn btn-danger button-center-sx business_button_refuse" value="拒绝通过">
	        <input type="button"  class="btn btn-primary button-center-sx business_button_reject" value="驳回重传">
	        <input type="button"  class="btn btn-success button-center-sx business_button_adopt" value="通过审核">
	    </div>
	</div>
</div>
<div class="modal fade" tabindex="-1" id="exampleModal" role="dialog">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">营业执照大图</h4>
      </div>
      <div class="modal-body">
        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<img src="" class="identitycardimg identitycardimg_sty center-block hide">
@endsection

@section('js-import')
<script type="text/javascript" src="{{config('app.inlet_src')}}assets/scripts/baguetteBox.min.js"></script>
<script type="text/javascript" src="{{config('app.inlet_src')}}a/js/licence.js"></script>
@endsection

@section('js-write')
<script type="text/javascript">
	baguetteBox.run('.tz-gallery');
	$('.identitycardimg').click(function(){
		var this_ = $(this).clone();
		var modal = $('#exampleModal');
		modal.find('.modal-body').empty();
	   $(this_).attr('src',this_.context.currentSrc).attr('class','identitycardimg identitycardimg_sty center-block');
	   modal.find('.modal-body').append($(this_));
		$('#exampleModal').modal();
	});
	
</script>
@endsection